package com.mvc4g.example.client.main.actions;

import com.google.gwt.user.client.ui.Widget;
import com.mvc4g.client.ActionInterface;
import com.mvc4g.client.Controller;
import com.mvc4g.example.client.Constants;
import com.mvc4g.example.client.main.MainView;

public class ChangePageAction implements ActionInterface, Constants {

	@Override
	public void execute(Controller controller, Object form) {
		MainView mainView = (MainView) controller.getView(MAIN_VIEW);
		mainView.changePage((Widget) form);
	}

}
